package org.core.blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SearchParam extends PageQueryParam{
    private String title;
    private String content;
    private LocalDateTime begin;
    private LocalDateTime end;
    private int categoryId;
    private int userId;

    private List<Tag> tags;

    public SearchParam(int page,int pageSize){
        super(page,pageSize);
    }

    public SearchParam(PageQueryParam pageQueryParam){
        super(pageQueryParam.getPage(),pageQueryParam.getPageSize());
    }
}
